/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const WorkbenchRouterMap = {
  id: 19,
  path: '/workbench',
  component: Layout,
  name: '工作台',
  meta: {title: '工作台', icon: 'work', power: 'workbench'},
  showMode: 'DEFAULT',
  children: [
    {
      id: 22,
      path: 'sign_in',
      name: '打卡签到',
      component: resolve => require(['@/views/workbench/sign_in.vue'], resolve),
      meta: {title: '打卡签到', icon: 'signin', power: 'workbench.singn_in'},
      children: [
        {
          id: 83,
          path: 'personalty',
          name: '个人销售统计s',
          component: resolve => require(['@/views/workbench/operation/personalty'], resolve),
          meta: {title: '个人销售统计', power: 'workbench.singn_in.personalty'},
          hidden: true
        }
      ]
    }, {
      id: 84,
      path: 'ranking_list',
      name: '业绩排行榜',
      component: resolve => require(['@/views/workbench/ranking_list.vue'], resolve),
      meta: {title: '业绩排行榜', icon: 'ranking', power: 'workbench.ranking_list'},
      children: [
        {
          id: 83,
          path: 'personalty',
          name: '个人销售统计r',
          component: resolve => require(['@/views/workbench/operation/personalty'], resolve),
          meta: {title: '个人销售统计', power: 'workbench.ranking_list.personalty'},
          hidden: true
        }
      ]
    }, {
      id: 224,
      path: 'sales_ranking',
      name: '成单率排行榜',
      component: resolve => require(['@/views/workbench/sales_ranking.vue'], resolve),
      meta: {title: '成单率排行榜', icon: 'ranking', power: 'workbench.sales_ranking'},
      children: [
        {
          id: 83,
          path: 'personalty',
          name: '个人销售统计sr',
          component: resolve => require(['@/views/workbench/operation/personalty'], resolve),
          meta: {title: '个人销售统计', power: 'workbench.sales_ranking.personalty'},
          hidden: true
        }
      ]
    }, {
      id: 201,
      path: 'operation',
      name: '平台运营数据',
      component: resolve => require(['@/views/workbench/operation'], resolve),
      meta: {title: '平台运营数据', icon: 'chart', power: 'workbench.operation'},
      children: [
        {
          path: 'department',
          name: '部门运营数据',
          component: resolve => require(['@/views/workbench/operation/department'], resolve),
          meta: {title: '部门运营数据', power: 'workbench.operation.department'},
          hidden: true,
          children: [
            {
              path: 'personalty',
              name: '个人销售统计',
              component: resolve => require(['@/views/workbench/operation/personalty'], resolve),
              meta: {title: '个人销售统计', power: 'workbench.operation.department.personalty'},
              hidden: true
            }
          ]
        }
      ]
    }, {
      id: 257,
      path: 'myAchievement',
      name: '我的业绩',
      component: resolve => require(['@/views/workbench/achievement/personal'], resolve),
      meta: {title: '我的业绩', icon: 'chart', power: 'workbench.operation'},
      children: [
        {
          path: 'personalty',
          name: '个人销售统计',
          component: resolve => require(['@/views/workbench/operation/personalty'], resolve),
          meta: {title: '个人销售统计', power: 'workbench.operation.department.personalty'},
          hidden: true
        }
      ]
    }, {
      id: 258,
      path: 'achievement',
      name: '全部业绩',
      component: resolve => require(['@/views/workbench/achievement/index'], resolve),
      meta: {title: '全部业绩', icon: 'chart', power: 'workbench.operation'}
    }, {
      id: 258,
      path: 'monthAchievement',
      name: '当月业绩',
      component: resolve => require(['@/views/workbench/achievement/all'], resolve),
      meta: {title: '当月业绩', icon: 'chart', power: 'workbench.operation'},
      hidden: true
    }, {
      id: 83,
      path: 'personalty',
      name: '个人销售统计',
      component: resolve => require(['@/views/workbench/achievement/details'], resolve),
      meta: {title: '个人销售统计', power: 'workbench.operation.department.personalty'},
      hidden: true
    }
  ]
}

export default WorkbenchRouterMap;
